-- cmd_do_exchange
-- Create by panyl
-- 兑换

function Operation.cmd_do_exchange(id, times)
    times = times or 1  -- 默认执行一次
    
    if true ~= ExchangeM.canDoExchange(id, times) then
        return
    end
    
    Communicate.send("CMD_DO_EXCHANGE", {["id"] = id, ["times"] = times, });
end